//
//  CHClickEdgeInsetsButton.swift
//  CHSimpleUI
//
//  Created by cyptt on 2022/8/1.
//

import UIKit

public class CHClickEdgeInsetsButton: CHBaseButton {

    public override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
        var bounds = self.bounds
        let edgeIndets = UIEdgeInsets.init(top: -20, left: -20, bottom: -20, right: -20)
        bounds = bounds.inset(by: edgeIndets)
        return bounds.contains(point)
    }

}
